import Vue from 'vue'
import Router from 'vue-router'

import Home from "@/containers/Home"
import MusicList from "@/containers/MusicList"
import Singer from "@/containers/Singer"
import Top from "@/containers/Top"
import Mine from "@/containers/Mine"
import Search from "@/containers/Search"
import Play from "@/containers/Play"
Vue.use(Router)

export default new Router({
  linkActiveClass:'active',
  routes: [
    {
      path: '/',
      name: 'Home',
      component: Home
    },
    {
      path: '/list',
      name: 'MusicList',
      component: MusicList
    },
    {
      path: '/singer',
      name: 'Singer',
      component: Singer
    },
    {
      path: '/top',
      name: 'Top',
      component: Top
    },
    {
      path: '/mine',
      name: 'Mine',
      component: Mine
    },
    {
      path: '/search',
      name: 'Search',
      component: Search
    },
    {
      path: '/play/:id',
      name: 'Play',
      component: Play
    },
  ]
})
